﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using GqqMvcWeb.Models;

namespace GqqMvcWeb.Controllers
{
    public class RazorController : Controller
    {
        //
        // GET: /Razor/

        public ActionResult Index()
        {
            List<ProductModels> models = new List<ProductModels>();
            ProductModels m1 = new ProductModels { Id = 1, Name = "product1", Price = (decimal)32.22 };
            ProductModels m2 = new ProductModels {Id = 2, Name = "product2", Price = (decimal) 9.2};
            models.Add(m1);
            models.Add(m2);
            return View(models);
        }
    }
}
